<!DOCTYPE html>
<html>
<head>
    <title><g:layoutTitle default="Grails"/></title>
    <link rel="stylesheet" href="${resource(dir: 'css', file: 'main.css')}"/>
    <link rel="shortcut icon" href="${resource(dir: 'images', file: 'g-meetingico.ico')}" type="image/x-icon"/>
    <g:layoutHead/>
    <g:javascript library="application"/>
</head>

<body>
<sec:ifAllGranted roles="ROLE_ADMIN">
    <ul class="login-details">
        <li>User : <sec:username/></li>
        <li>Role : Admin</li>
        <li><g:link controller="logout">Logout</g:link></li>
    </ul>
</sec:ifAllGranted>
<sec:ifAllGranted roles="ROLE_USER">
    <ul class="login-details">
        <li>User : <sec:username/></li>
        <li>Role : User</li>
        <li><g:link controller="logout">Logout</g:link></li>
    </ul>
</sec:ifAllGranted>
<div id="spinner" class="spinner" style="display:none;">
    <img src="${resource(dir: 'images', file: 'spinner.gif')}"
         alt="${message(code: 'spinner.alt', default: 'Loading...')}"/>
</div>
<g:layoutBody/>
</body>
</html>